package utility;

public class formatData {

	public static String format(String data)
	{
		if(data!=null)
		{
		String result;
		String[] arryMont= {"GEN", "FEB", "MAR", "APR", "MAG", "GIU",
		  	       		"LUG", "AGO", "SET", "OTT", "NOV", "DIC"};
		data=data.substring(0, 10);
		String arr[]=data.split("-");
		result=arr[2]+"-"+arryMont[Integer.parseInt(arr[1])-1]+"-"+arr[0];
		return result;
		}
		return "N.D.";
	}
}
